﻿using Ninject.Modules;
using WaitLess.App.Services;
using WaitLess.App.Services.Interfaces;
using WaitLess.App.ViewModels;

namespace WaitLess.App
{
    public class AppModule : NinjectModule
    {
        public override void Load()
        {
            Bind<INavigationService>().To<NavigationService>().InSingletonScope();
            Bind<IDataCache>().To<DataCache>().InSingletonScope();
            Bind<IGps>().To<Gps>().InSingletonScope();

            Bind<MainViewModel>().ToSelf().InSingletonScope();
            Bind<DetailsViewModel>().ToSelf().InSingletonScope();
        }
    }
}
